<?php
	$yhendus=new mysqli ("localhost", "if13", "ifikad", "if13_rongelst");
	$kask=$yhendus->prepare("SELECT id, kass, toon FROM cats");
	echo $yhendus->error;
	$kask->bind_result ($id, $kass, $toon);
	$kask->execute();
	
?>
<!doctype html>
<html>
	<head>
	<title>Kassileht</title>
	</head>
     <body>
    <h1>Kassid!</h1>
		<?php
			while($kask->fetch()) {
			echo "<h2 style='color:$toon'>$kass</h2>";
			}
			$yhendus->close();
			?>
			
		</body>
	</html>   